package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_StockControlDaily", catalog="Id")
public class TccStockControlDaily extends BaseEntity<TccStockControlDaily> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="DayStock", nameJava="dayStock", typeDataBase="char")
	private String dayStock;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="ProductName", nameJava="productName", typeDataBase="varchar")
	private String productName;
	@YsField(nameDataBase="CodeLocation", nameJava="codeLocation", typeDataBase="varchar")
	private String codeLocation;
	@YsField(nameDataBase="CodeArea", nameJava="codeArea", typeDataBase="varchar")
	private String codeArea;
	@YsField(nameDataBase="CodeWarehouse", nameJava="codeWarehouse", typeDataBase="varchar")
	private String codeWarehouse;
	@YsField(nameDataBase="CodeCompany", nameJava="codeCompany", typeDataBase="varchar")
	private String codeCompany;
	@YsField(nameDataBase="NameCompany", nameJava="nameCompany", typeDataBase="varchar")
	private String nameCompany;
	@YsField(nameDataBase="ProductNum", nameJava="productNum", typeDataBase="int")
	private Integer productNum;
	@YsField(nameDataBase="ProductNumAll", nameJava="productNumAll", typeDataBase="int")
	private Integer productNumAll;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccStockControlDaily setId(Long id) {
		this.id = id;
		return this;
	}
	public String getDayStock() {
		return dayStock;
	}
	public TccStockControlDaily setDayStock(String dayStock) {
		this.dayStock = dayStock;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public TccStockControlDaily setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public String getProductName() {
		return productName;
	}
	public TccStockControlDaily setProductName(String productName) {
		this.productName = productName;
		return this;
	}
	public String getCodeLocation() {
		return codeLocation;
	}
	public TccStockControlDaily setCodeLocation(String codeLocation) {
		this.codeLocation = codeLocation;
		return this;
	}
	public String getCodeArea() {
		return codeArea;
	}
	public TccStockControlDaily setCodeArea(String codeArea) {
		this.codeArea = codeArea;
		return this;
	}
	public String getCodeWarehouse() {
		return codeWarehouse;
	}
	public TccStockControlDaily setCodeWarehouse(String codeWarehouse) {
		this.codeWarehouse = codeWarehouse;
		return this;
	}
	public String getCodeCompany() {
		return codeCompany;
	}
	public TccStockControlDaily setCodeCompany(String codeCompany) {
		this.codeCompany = codeCompany;
		return this;
	}
	public String getNameCompany() {
		return nameCompany;
	}
	public TccStockControlDaily setNameCompany(String nameCompany) {
		this.nameCompany = nameCompany;
		return this;
	}
	public Integer getProductNum() {
		return productNum;
	}
	public TccStockControlDaily setProductNum(Integer productNum) {
		this.productNum = productNum;
		return this;
	}
	public Integer getProductNumAll() {
		return productNumAll;
	}
	public TccStockControlDaily setProductNumAll(Integer productNumAll) {
		this.productNumAll = productNumAll;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccStockControlDaily setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccStockControlDaily setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccStockControlDaily setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccStockControlDaily tccStockControlDaily(
		String dayStock,
		String productCode,
		String productName,
		String codeLocation,
		String codeArea,
		String codeWarehouse,
		String codeCompany,
		String nameCompany,
		Integer productNum,
		Integer productNumAll,
		Integer status
			) {
		TccStockControlDaily entity = new TccStockControlDaily();
		entity.setDayStock(dayStock);
		entity.setProductCode(productCode);
		entity.setProductName(productName);
		entity.setCodeLocation(codeLocation);
		entity.setCodeArea(codeArea);
		entity.setCodeWarehouse(codeWarehouse);
		entity.setCodeCompany(codeCompany);
		entity.setNameCompany(nameCompany);
		entity.setProductNum(productNum);
		entity.setProductNumAll(productNumAll);
		entity.setStatus(status);
		return entity;
	}
}